package ua.races.vo;

public class Horse {
    private String horseName;
    private Long horseId;

    public Horse() {
    }

    public Horse(Long horseId ,String horseName) {
        this.horseName = horseName;
        this.horseId = horseId;
    }

    public String getHorseName() {
        return horseName;
    }

    public void setHorseName(String horseName) {
        this.horseName = horseName;
    }

    public Long getHorseId() {
        return horseId;
    }

    public void setHorseId(Long horseId) {
        this.horseId = horseId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Horse horse = (Horse) o;

        if (!horseId.equals(horse.horseId)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return horseId.hashCode();
    }
}
